﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="HCFramework.Product.Admin.OrderManage.Default" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="groupHeader">
        Order management
    </div>
    <div>
        <asp:RadioButtonList ID="radioListFilterByStatus" AutoPostBack="true" runat="server" RepeatDirection="Horizontal">
        </asp:RadioButtonList>
    </div>
    <telerik:RadGrid ID="RadGridMain" runat="server" Skin="Office2007" AutoGenerateColumns="False"
        OnItemCommand="RadGridMain_ItemCommand" OnPreRender="RadGridMain_PreRender" AllowPaging="True"
        AllowSorting="True" GridLines="None" AllowMultiRowSelection="True"
        OnItemDataBound="RadGridMain_ItemDataBound">
        <ClientSettings>
            <Selecting AllowRowSelect="True" />
        </ClientSettings>
        <MasterTableView CommandItemSettings-AddNewRecordText="Thêm mới" NoMasterRecordsText="No records.">
            <RowIndicatorColumn>
                <HeaderStyle Width="20px" />
            </RowIndicatorColumn>
            <ExpandCollapseColumn>
                <HeaderStyle Width="20px" />
            </ExpandCollapseColumn>
            <CommandItemSettings AddNewRecordText="Thêm mới" />
            <Columns>
                <telerik:GridBoundColumn DataField="OrderID" HeaderText="ID" UniqueName="OrderID" Visible="true">
                </telerik:GridBoundColumn>
                <telerik:GridTemplateColumn HeaderText="Date">
                    <ItemTemplate>
                        <asp:Literal ID="litCreatedDate" runat="server"></asp:Literal>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn HeaderText="Products">
                    <ItemTemplate>
                        <asp:Literal ID="litProducts" runat="server"></asp:Literal>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn HeaderText="Total price" ItemStyle-HorizontalAlign="Right">
                    <ItemTemplate>
                        <asp:Literal ID="litTotalPrice" runat="server"></asp:Literal>
                        VNĐ
                    </ItemTemplate>

<ItemStyle HorizontalAlign="Right"></ItemStyle>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn HeaderText="Detail">
                    <ItemTemplate>
                        <asp:HyperLink ID="linkDetail" NavigateUrl="~/Product/Confirmation/Default.aspx?orderIdentity=" Target="_blank" runat="server">Chi tiết</asp:HyperLink>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn HeaderText="Shipping">
                    <ItemTemplate>
                        <asp:Literal ID="litDeliveryMethod" runat="server"></asp:Literal>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn HeaderText="Payment">
                    <ItemTemplate>
                        <asp:Literal ID="litPaymentMethod" runat="server"></asp:Literal>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn HeaderText="Status">
                    <ItemTemplate>
                        <asp:DropDownList ID="cboStatus" AutoPostBack="true" runat="server" 
                            onselectedindexchanged="cboStatus_SelectedIndexChanged">
                        </asp:DropDownList>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn HeaderText="Send email">
                    <ItemTemplate>
                        <asp:HyperLink ID="linkSendEmail" NavigateUrl="~/AdminTool/Email/SendEmail.aspx?OrderID=" Target="_blank" runat="server">Send email</asp:HyperLink>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>
</asp:Content>
